<?php
/**
 * Description of CEnergetica
 *
 * @author BRC
 */

require_once('./GestorCEnergetica.php');

class CEnergetica {
    
    // --- ATTRIBUTES ---
    private $id = null;
    private $cenergetica = null;

    function __construct($id, $cenergetica) {
        $this->id = $id;
        $this->cenergetica = $cenergetica;
    }
    public function getId() {
        return $this->id;
    }

    public function setId($id) {
        $this->id = $id;
    }

    public function getCenergetica() {
        return $this->cenergetica;
    }

    public function setCenergetica($cenergetica) {
        $this->cenergetica = $cenergetica;
    }

    public function consultar(){
       $retorno = GestorCEnergetica::getListaCEnergeticas($this);;
       return $retorno;
    }
    
    
}
    
        


?>
